package com.dlc.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dlc.shop.bean.dto.AllotOrderDTO;
import com.dlc.shop.bean.model.AllotOrder;
import com.dlc.shop.bean.vo.AllotOrderVO;
import com.dlc.shop.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author gaozijie
 * @since 2023-11-20
 */
public interface AllotOrderMapper extends BaseMapper<AllotOrder> {

    /**
     * 分页获取调拨订单
     * @param pageParam 分页参数
     * @param allotOrderDTO 调拨订单DTO
     * @return 调拨订单VO分页参数
     */
    Page<AllotOrderVO> pageAllotOrder(@Param("pageParam") PageParam<AllotOrderVO> pageParam,
                                      @Param("allotOrderDTO") AllotOrderDTO allotOrderDTO);

    /**
     * 获取调拨订单集合
     * @param allotOrderDTO 调拨订单DTO
     * @return 调拨订单集合
     */
    List<AllotOrderVO> listAllotOrder(@Param("allotOrderDTO") AllotOrderDTO allotOrderDTO);

    /**
     * 获取调拨订单详情
     * @param allotOrderDTO 调拨订单dto
     * @return 调拨订单详情
     */
    AllotOrderVO getAllotOrder(@Param("allotOrderDTO") AllotOrderDTO allotOrderDTO);
}
